﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels.ProductionManagement;
using VOL.Smartmanufacturing.Infrastructure;
using VOL.Smartmanufacturing.IServices.ProductionManagement;

namespace VOL.Smartmanufacturing.Services.ProductionManagement
{
    /// <summary>
    /// 修改设备台账
    /// </summary>
    public class UpdateEquipmentLedger : IUpdateEquipmentLedger
    {
        private readonly IBaseRepository<EquipmentLedgerModel> _updatebaseRepository;

        public UpdateEquipmentLedger(IBaseRepository<EquipmentLedgerModel> updatebaseRepository)
        {
            _updatebaseRepository = updatebaseRepository;
        }
        public async Task<int> UpdateEquipmentLedgerAsync(EquipmentLedgerModel model)
        {
            var result = await _updatebaseRepository.UpdateAsync(model);
            return result;
        }
    }
}
